/** When your routing table is too long, you can split it into small modules**/

const Layout = () => import('@/layout/index.vue');

const achievementRouter = {
  path: '/achievement',
  component: Layout,
  name: 'achievement',
  meta: {
    title: '成就管理',
    icon: 'chart'
  },
  children: [
    {
      path: 'consume',
      component: () => import('@/views/achievement/consume.vue'),
      name: 'consume',
      meta: { title: '消費成就', noCache: true }
    },
    {
      path: 'extend',
      component: () => import('@/views/achievement/extend.vue'),
      name: 'extend',
      meta: { title: '推廣成就', noCache: true }
    },
    {
      path: 'recharge',
      component: () => import('@/views/achievement/recharge.vue'),
      name: 'recharge',
      meta: { title: '充值成就', noCache: true }
    },
    {
      path: 'rank',
      component: () => import('@/views/achievement/rank.vue'),
      name: 'rank',
      meta: { title: '榜單成就', noCache: true }
    },
    {
      path: 'editAchieve',
      component: () => import('@/views/achievement/editAchieve.vue'),
      name: 'editAchieve',
      meta: { title: '編輯', noCache: true, hidden: true }
    },


  ]
};

export default achievementRouter;
